package com.hospital.demo.service.impl.lxy;


import com.hospital.demo.mapper.lxy.WorkstationMapper;
import com.hospital.demo.model.lxy.Workstation;
import com.hospital.demo.service.lxy.WorkstationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 李欣远
 * @since 2020-04-08
 */
@Service
public class WorkstationServiceImpl implements WorkstationService {

    @Autowired
    WorkstationMapper workstationMapper;

    @Override
    public List<Workstation> selWs() {
        return workstationMapper.selWs();
    }

    @Override
    public List<Workstation> selWsByD(int did) {
        return workstationMapper.selWsByD(did);
    }

    @Override
    public int save(Workstation workstation) {
        return workstationMapper.save(workstation);
    }

    @Override
    public int updateById(Workstation workstation) {
        return workstationMapper.updateById(workstation);
    }

    @Override
    public int removeById(Integer wsid) {
        return workstationMapper.removeById(wsid);
    }
}
